package com.luo.demo.sharding.jdbc.model.dto;

import com.luo.demo.sharding.jdbc.model.entity.Order;
import com.luo.demo.sharding.jdbc.model.entity.OrderItem;
import com.luo.demo.sharding.jdbc.model.entity.Product;

import java.util.List;
/**
 * 订单信息 - DTO
 *
 * @author luohq
 * @date 2021-10-27 08:58
 */
public class OrderInfoDto extends Order {
    /**
     * 订单项列表
     */
    private List<OrderItem> orderItemList;
    /**
     * 订单商品列表
     */
    private List<Product> productList;

    public List<OrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    @Override
    public String toString() {
        return "OrderInfoDto{" +
                "orderItemList=" + orderItemList +
                ", productList=" + productList +
                '}';
    }
}
